package com.marktotop.learntwo;

import com.marktotop.learntwo.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author WXLD
 * @data 2021/4/17 - 14:41
 */
public class UserMain {

    public static void main(String[] args) {

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userservice = (UserService) context.getBean("userService");
        userservice.save();
    }
}
